package com.xizi.atomic;

import java.lang.reflect.Field;

public class Father {
    public Integer num = 1;
}

class Son extends Father {
    public static void main(String[] args) throws Exception {
        Son son = new Son();
        Field field[] = son.getClass().getFields();
        for (Field f : field) {
            System.out.println(f);
        }

    }

}
